package com.xique.blelock.Utils;

import java.util.UUID;

/**
 * Created by Administrator on 2018/12/4.
 */

public class Stringkey {
    public static final String USER_TOKEN = "usertoken";
    public static final String USER_UID = "userid";
    public static final String USER_PHONE = "phone";
    public static String USERInfo = "userinfo";
    public static final String DeviceInfo = "deviceinifo";
    public static String Sexkey = "gender";

    public static final String BLEDevice = "bledevice";
    public static String lockAllinfo = "lockAllinfo";

    public static final String USER_LIST = "userlist";

    public static final String SERVICE_UUID = "00000af0-0000-1000-8000-00805f9b34fb";

    public static final String NOTIFY_CHAR_UUID = "00000af7-0000-1000-8000-00805f9b34fb";

    public static final String WRITE_CHAR_UUID = "00000af6-0000-1000-8000-00805f9b34fb";


//    public static final String SERVICE_UUID = "0af0";
//
//    public static final String NOTIFY_CHAR_UUID = "0af7";
//
//    public static final String WRITE_CHAR_UUID = "0af6";


    //记录数据上传通道
    public static final String RECORD_NOTIFY_CHAR_UUID = "00000af2-0000-1000-8000-00805f9b34fb";

    //记录数据指令交互
    public static final String RECORD_WRITE_CHAR_UUID = "00000af1-0000-1000-8000-00805f9b34fb";




    public final static UUID INFO_SERVICE_UUID   = UUID.fromString("00000af0-0000-1000-8000-00805f9b34fb");//设备信息服务
    public final static UUID TX_CHAR_UUID  = UUID.fromString("00000af6-0000-1000-8000-00805f9b34fb"); //写命令
    public final static UUID RX_CHAR_UUID           =UUID.fromString("00000af7-0000-1000-8000-00805f9b34fb"); //notify
    public final static UUID RECORD_CHAR_UUID       =UUID.fromString("00000af1-0000-1000-8000-00805f9b34fb"); //写命令
    public final static UUID RX_RCORD_CHAR_UUID    =UUID.fromString("00000af2-0000-1000-8000-00805f9b34fb"); //notify

    public static String BleName =  "";

    public final static String readDeviceinfo = "0201";

    //蓝牙锁开锁命令
    public final static String  openlockdata = "0501AAAA5555";

    //关锁命令
    public final static String closelockdata = "05015555AAAA";

    //关锁命令
    //public final static String closelockdata = "05015555AAAA";

    //05 01 + 01/00 : 0x01:代表门已经锁 ，0x02:代表门开着 ，0x00 :通讯代表
    //开锁成功
    public final static String lock_status_open  = "050101";//所已经打开

    public final static String  lock_status_close= "050102";//所已经关闭

    //控制敞开模式
    public final static String  comm_open_mode = "0502AA";// 敞开命令

//    场馆4 命令
    public final static String comm_close_mode = "050255";//取消长开模式

    //敞开模式
//    public final static String comm_open_mode = "0502aa";
    public final static String comm_open_prefix = "comm_open_";
    public final static String fast_open_prefix = "fast_open_";
    public final static String comm_close_mode_rep_ok = "050202";//取消长开模式
    public final  static String comm_open_mode_rep_ok = "050201";//设置长开成功

    public final static String comm_open_rep_prefix = "0502";//长开失败

    //敞开响应
    public final static String comm_rep_failed = "050200";//长开失败

    //
    public static final String Fingerlist = "fingerlist";
    //获取指纹列表
    public static String getFingerList = "0603";

    //删除指纹列表
    public static String deletFingerHead = "0601";

    //删除全部指纹列表
    public static String deletAllFinger = "0602AA";

    //获取开锁记录总条数，从设备上读取
    public static String getOprationRecord = "0801";

    // 读取记录命令 头
    public static String Read_RecordHead = "0802";

    // 握手命令
    public static final String HandCmd = "0401AA5555AA";

    //握手成功
    public static final String Hand_response_ok = "0401";

    //同步操作记录 数据定义
    public  static final  int FIRST_TIME_INDEX = 4;
    public static final  int FIRST_METHOD_INDEX = 8;//开锁方式
    public static final int  FIRST_FIG_INDEX = 9;
    public static final  int FIRST_RESULT_INDEX = 10;
    public static final int RECORD_FRAME_LENGTH = 7;
    public static String  clearRecord = "0803ee";


    //读取设备信息
    public static final int hardinfolength = 14;
    public static final int hardverindex = 2;
    public static final int firmwareverindex = 4;
    public static final int vendorindex = 6;
    public static final int volumindex = 8;
    public static final int serialindex = 9;
    public static final int commopenindex = 11;
    public static final int lockstatusindex = 12;
    public static final int managerorderindex = 13;

    //设置时间
    public static  final int Yearlowindex = 2;
    public static final  int Yearhightindex = 3;
    public static final int Monthindex = 4;
    public static final int Dayindex = 5;
    public static final int Hourindex = 6;
    public static final int Minuteindex = 7;
    public static final int SecondIndex = 8;




    //设置管理员
    public static final String setAdmin = "0605";

    //取消管理员
    public  static final String cancleAdmin = "0604";


    //获取当前锁的用户信息描述信息：查询已绑定的指定锁信息，包括锁的基本信息，还有绑定的用户列表，指纹列表和操作记录（根据查询用户的身份权限返回相应信息）

    //重启硬件设备
    public static final String rebootdev = "f001";
    //回复出厂设置
    public static final String factorydev = "f002";

    public static final String factory_ok = "f00201";

    public static final String factory_fail = "f00200";



//        "token":"b2bab55a4cc74d8bad8021e7153df084",
//                "uid":"390ade59a4fc4fa3bef040d9107a1181",
//                "lockId":"lockid00001",
//                "timestamp":"1539684831"
    public final static String Token = "token";
    public final static String UID = "uid";
    public final static String LockId = "lockId";
    public final static String LockName = "lockName";
    public final static String LockKey = "lockKey";
    public final static String hardwareVersion = "hardwareVersion";
    public final static String softwareVersion = "softwareVersion";
    public final static String Vendor = "vendor";
    public final static String serialNuber = "serialNumber";
    public final static String lockStatus = "lockStatus";
    public final static String lockPower = "lockPower";
    public final static String Timestamp = "timestamp";
    public final static String bandUid = "bandUid";
    public final static String ToTal = "total";
    public final static String Time = "time";
    public final static String StartTime = "startTime";
    public final static String EndtTime = "endTime";
    public final static String Type = "type";
    public final static String msgId = "msgId";
    public static String LoginName = "loginName";

    public final static String  Content = "content";
    public final static String PostMail = "email";

    public final static String isSetPwd = "isSetPwd";






    public final static String UserNotSetting = "用户信息未设置";


    public static String JpushTag = "jpushtag";
    public static String JpushKey = "androidNotification extras key";
    public static String Message = "message";
    public static String HasMessage = "hasmessage";

    //定义设备消息推送事件
    public static final String Message_Event = "com.xique.message.push";
    public static final String Device_Message_Event = "com.xique.devicemessage.push";
    public static final String System_Message_Event = "com.xique.systemmessage.push";
    public static final String Activity_Message_Event = "com.xique.activitymessage.push";

    public static final String Device_ReGetDeviceList = "com.xique.message.regetdevicelist";


}
